﻿#ifndef TABLETITLECOMMAND_H
#define TABLETITLECOMMAND_H

#include "/rapidjson/AIGCJson.hpp"

using namespace std;
using namespace aigc;

class DevTableTitle
{
public:
    string col0;
    string col1;
    string col2;
    string col3;
    string col4;
    string col5;
    string col6;
    string col7;
    string col8;

    AIGC_JSON_HELPER(col0, col1, col2, col3, col4, col5, col6, col7, col8)
};

/**
 * @brief 服务端发给设备端的表格表头配置命令报文(UDP, 服务端->设备端)
 */
class TableTitleCommand
{
public:
    string        cmdType = "UPDATE_TABLE_TITLE";
    string        requestNo;
    int           deviceNo;
    int           tableNo;
    DevTableTitle devTableTitle;

    AIGC_JSON_HELPER(cmdType, requestNo, deviceNo, tableNo, devTableTitle)
};

#endif // TABLETITLECOMMAND_H
